package com.originskyseed.platform.cms.service;

import java.util.List;
import java.util.Map;

import com.originskyseed.platform.cms.model.AnchorRelatePlayerVO;
import com.originskyseed.platform.cms.model.GiftRelateReceive;
import com.originskyseed.platform.core.base.BasePage;

/**
 * 礼品领取信息Service接口类（OSI_GIFT_RELATE_RECEIVE）
 *
 * @author WuZhuoXi
 */
public interface IGiftRelateReceiveService {

	/**
	 * 删除记录
	 *
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKey(String id) throws Exception;

	/**
	 * 批量删除记录
	 *
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKeys(List<String> ids) throws Exception;

	/**
	 * 插入记录
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insert(GiftRelateReceive record) throws Exception;

	/**
	 * 插入记录（仅非空值字段）
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insertSelective(GiftRelateReceive record) throws Exception;

	/**
	 * 更新记录
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKey(GiftRelateReceive record) throws Exception;

	/**
	 * 更新记录（仅非空值字段）
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKeySelective(GiftRelateReceive record) throws Exception;

	/**
	 * 查询记录
	 *
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public GiftRelateReceive selectByPrimaryKey(String id) throws Exception;

	/**
	 * 查询列表
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public List<GiftRelateReceive> selectList(GiftRelateReceive record) throws Exception;

	/**
	 * 分页查询列表
	 *
	 * @param params
	 * @param page
	 * @return
	 * @throws Exception
	 */
	public BasePage<GiftRelateReceive> selectListByPage(Map<String, Object> params, BasePage<GiftRelateReceive> page) throws Exception;

	/**
	 * 主播维护玩家情况记录列表
	 *
	 * @param params
	 * @return
	 * @throws Exception
	 */
	public BasePage<AnchorRelatePlayerVO> selectAnchorRelatePlayerListByPage(Map<String, Object> params, BasePage<AnchorRelatePlayerVO> page) throws Exception;

	/**
	 * 分页查询列表
	 *
	 * @param params
	 * @return
	 * @throws Exception
	 */
	public List<GiftRelateReceive> selectListToExcel(Map<String, Object> params) throws Exception;

}
